package com.intelligent.health.base.export.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: torlesse-liang
 * @Date: 2022/03/26/1:10
 * @Description: 套餐导出实体类 ExportSetMealBean
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class ExportSetMealBean {

    @Excel(name = "套餐标识", needMerge = true)
    private String code;

    @Excel(name = "套餐名称", needMerge = true)
    private String name;

    @Excel(name = "适用性别", replace = {"不限_0", "男_1", "女_2"}, needMerge = true)
    private String sex;

    @Excel(name = "适用年龄", needMerge = true)
    private String age;

    @Excel(name = "价格/单价", needMerge = true)
    private Float price;

    @Excel(name = "注意事项", needMerge = true)
    private String attention;

    @Excel(name = "备注", needMerge = true)
    private String remark;

    @Excel(name = "状态", replace = {"有效_1", "无效_0"}, needMerge = true)
    private Integer state;

    @ExcelCollection(name = "检查组列表")
    private List<ExportCheckGroupBean> exportCheckGroupBeans;

}
